home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / fgl105c.zip / 09-09.C < prev    next >
Text File  |  1991-05-05  |  650b  |  34 lines

  1. char arrow[] = {
  2.    0x02,0x00, 0x03,0x00, 0xFF,0x80, 0xFF,0xC0,
  3.    0xFF,0x80, 0x03,0x00, 0x02,0x00
  4.    };
  5.  
  6. main()
  7. {
  8.    int old_mode;
  9.  
  10.    if (fg_testmode(13,1) == 0) {
  11.       printf("This program requires a 320 ");
  12.       printf("x 200 EGA graphics mode.\n");
  13.       exit();
  14.       }
  15.  
  16.    old_mode = fg_getmode();
  17.    fg_setmode(13);
  18.    fg_setclip(0,15,0,199);
  19.    fg_setcolor(15);
  20.  
  21.    fg_move(10,10);
  22.    fg_drwimage(arrow,2,7);
  23.    fg_move(10,20);
  24.    fg_clpimage(arrow,2,7);
  25.    fg_move(4,30);
  26.    fg_revimage(arrow,2,7);
  27.    fg_move(4,40);
  28.    fg_flpimage(arrow,2,7);
  29.    fg_waitkey();
  30.  
  31.    fg_setmode(old_mode);
  32.    fg_reset();
  33. }
  34.